document.getElementById('registerForm').addEventListener('submit', function(event) {
	event.preventDefault();

	const password = document.getElementById('password').value;
	const confirmPassword = document.getElementById('confirmPassword').value;

	if (password !== confirmPassword) {
		alert('两次输入的密码不一致');
		return;
	}

	console.log('Registration data:', formData);
	alert('注册功能需要后端支持');
});

document.getElementById('returnButton').addEventListener('click', function() {
	window.history.back();
});
function returnindex(){
	window.location.href = 'index.html';
}